package com.qiye.livevideo.service.impl;
import com.qiye.livevideo.dao.ApiCountDao;
import com.qiye.livevideo.model.ApiCount;
import com.qiye.livevideo.service.ApiCountService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;


/**
 * Created on 2019/4/30.
 *
 * @author meishijun
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class ApiCountServiceImpl   implements ApiCountService {


	/**
	 * 注入dao
	 */
	@Resource
	private ApiCountDao apiCountDao;
	/**
	 * 初始化
	 */
	@Override
	public ApiCountDao initDao(){
		return apiCountDao;
	}


	@Override
	public ApiCount selectByCreateTime(String createTime) {
		return apiCountDao.selectByCreateTime(createTime);
	}

	@Override
	public int updateCountById(Integer id) {
		return apiCountDao.updateCountById(id);
	}
}
